<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let tel = 18920015989
        tel = "" + tel
        let arr = tel.split("")
        for(let i = 3;i<7;i++){
            arr[i]="*"
        }
        let tel1 = arr.join("")
        console.log(tel1)
    </script>
</body>
</html>